package net.wanho.zx.zx_cms.controller;

import net.wanho.zx.pojo.cms.CmsPage;
import net.wanho.zx.pojo.cms.CmsSite;
import net.wanho.zx.pojo.cms.CmsTemplate;
import net.wanho.zx.util.AjaxResult;
import net.wanho.zx.zx_cms.service.CmsPageService;
import net.wanho.zx.zx_cms.service.CmsTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author： Depeng.Xu
 * @date： 2020/10/26 16:48
 * @description： TODO
 * @version: 1.0
 */

@RestController
public class CmsTemplateController {
    @Autowired
    private CmsTemplateService cmsTemplateService;

    @GetMapping("/cms/template/list")
    public List<CmsTemplate> queryCmsTemplateList(){
        return cmsTemplateService.queryCmsTemplateList();
    }

}
